//
//  MyUITextField.m
//  PYWGetColor
//
//  Created by appleLJ on 2018/6/14.
//  Copyright © 2018年 dwj. All rights reserved.
//

#import "MyUITextField.h"
#define MARGINWIDHT 10

@implementation MyUITextField

//控制显示文本的位置
-(CGRect)textRectForBounds:(CGRect)bounds
{
    CGRect inset = CGRectMake(bounds.origin.x+MARGINWIDHT, bounds.origin.y, bounds.size.width -MARGINWIDHT, bounds.size.height);
    return inset;
}

//控制编辑文本的位置
-(CGRect)editingRectForBounds:(CGRect)bounds
{
    CGRect inset = CGRectMake(bounds.origin.x +MARGINWIDHT, bounds.origin.y, bounds.size.width -MARGINWIDHT, bounds.size.height);
    return inset;
}
@end
